<template>
	<!-- 设置地址 -->
	<view>
		<view class="wrap">
			<ul>
				<li>
					<view class="box">
						<view class="top" style="display: flex;">
							<text class="name">name</text>
							<text>phone</text>
							<u-button style="position: relative; top: 8rpx; padding: 20rpx; width:20rpx; height: 35rpx; background-color: rgb(27,167,132);" :ripple="true" ripple-bg-color="#909399" size="mini" shape="circle" type="success">默认</u-button>
						</view>
						<view class="bottom">
							<text class="name">area</text>
							<text>detail</text>
						</view>
					</view>
					<view class="box1">
						<u-icon size="20" name="edit-pen"></u-icon>
					</view>
				</li>
				<li>
					<view class="box">
						<view class="top">
							<text class="name">name</text>
							<text>phone</text>
						</view>
						<view class="bottom">
							<text class="name">area</text>
							<text>detail</text>
						</view>
					</view>
					<view class="box1">
						<u-icon size="20" name="edit-pen"></u-icon>
					</view>
				</li>
			</ul>
		</view>
		<view class="foot">
			<u-button @click="cli" style="height: 70rpx; width: 500rpx; position: absolute; bottom: 20rpx;;  background-color: rgb(27,167,132);" :ripple="true" ripple-bg-color="#909399" size="mini" shape="circle" type="success" >+ 新建收货地址</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
     cli(){
		 uni.navigateTo({
		 	url:"../Delivery2/Delivery2"
		 })
	 }
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: rgb(247, 248, 250);
	}

	.wrap {
		width: 100%;

		ul {
			width: 100%;
			padding: 0.7vw;
			display: flex;
			list-style: none;
			flex-direction: column;
			align-items: center;

			li {
				margin-top: 20rpx;
				width: 93%;
				height: 150rpx;
				border-radius: 17rpx;
				background-color: #fff;
				display: flex;
				align-items: center;
				justify-content: center;
				cursor: pointer;
				position: relative;
			}
		}
	}

	.box {
		width: 60%;
		padding: 0.7vw;

		.name {
			margin-right:20rpx;
		}
	}
	.box1{
		width: 30%;
		height: 40%;
		position: relative;
	::v-deep .uicon-edit-pen{
		position: absolute;
		right: 10rpx;
		
	}
	}
	.foot{
		width: 100%;
		position: absolute;
		bottom: 30rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
</style>